package com.atguigu.create.builder;

public class HoustDirector {
    HouseBuilder houseBuilder=null;

    public HoustDirector() {
    }

    public HoustDirector(HouseBuilder houseBuilder) {
        this.houseBuilder = houseBuilder;
    }

    public void setHouseBuilder(HouseBuilder houseBuilder) {
        this.houseBuilder = houseBuilder;
    }

    public void constructHouse(){
        this.houseBuilder.buildBasic();
        this.houseBuilder.buildWall();
        this.houseBuilder.roofed();
        House build = this.houseBuilder.build();
        System.out.println(build);
    }
}
